package PatternPrinting;

import java.util.Scanner;

/**
 * Created by revathyr on 7/8/14.
 */
public class DrawRightTriangle {

    public static void main(String[] args)
    {

        Scanner in=new Scanner(System.in);
        DrawRightTriangle draw=new DrawRightTriangle();
        System.out.println("enter the number of lines");
        int i= in.nextInt();
        draw.drawRightTriangle(i);

    }

    private void drawRightTriangle(int n) {
        for(int i=1;i<=n;i++)
        {

            for (int j=0;j<i;j++)
            {

                System.out.print("*" + " ");
            }
            System.out.println(" ");
        }


    }


}
